package com.example.personal.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.personal.entity.po.UserPO;
import com.example.personal.entity.vo.CommonResult;

/**
 * Created on 2022/3/9.
 *
 * @author taodq
 */
public interface UserService extends IService<UserPO> {

    /***
     * 修改用户根据id
     * @param user 用户
     * @return CommonResult
     */
    CommonResult updateUserById(UserPO user);

    /***
     * 新增用户
     * @param user 用户
     * @return CommonResult
     */
    CommonResult insert(UserPO user);

    /***
     * 新增用户
     * @param current 当前页
     * @param pageSize 一页大小
     * @return CommonResult
     */
    CommonResult selectPage(Long current, Long pageSize);

}
